[ACM] Add a hypervisor call macro to the linux kernel; it
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 May 2006 06:23:54 +0000 (07:23 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 May 2006 06:23:54 +0000 (07:23 +0100)
completes the alignment of the ACM call interface with the other Xen
hypervisor call interfaces. This macro is used to call from the a guest
kernel directly into the ACM hypervisor module.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Signed-off by: Bryan D. Payne <bdpayne@us.ibm.com>

linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h
linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h

index 90a72d3cc0efe0b1f15a047d559c6fdd94b6fbda..767d293184305535086f86512caedbb8698f12a3 100644 (file)
@@ -259,6 +259,13 @@ HYPERVISOR_event_channel_op(
        return rc;
 }
 
+static inline int
+HYPERVISOR_acm_op(
+       int cmd, void *arg)
+{
+       return _hypercall2(int, acm_op, cmd, arg);
+}
+
 static inline int
 HYPERVISOR_xen_version(
        int cmd, void *arg)
index c2b779bfea57a470936b83fb1611237467eb455d..938d0aa99cc584c1626cf973a1912ed104f8ee25 100644 (file)
@@ -246,6 +246,13 @@ HYPERVISOR_event_channel_op(
     return rc;
 }
 
+static inline int
+HYPERVISOR_acm_op(
+       unsigned int cmd, void *arg)
+{
+       return = _hypercall2(int, acm_op, cmd, arg);
+}
+
 static inline int
 HYPERVISOR_xen_version(
     int cmd, void *arg)
index 8c521fce0396f530272c9616e03a80e47efb297c..fd45934418b96cac4a90dc3a7c8caf7085f49112 100644 (file)
@@ -257,6 +257,13 @@ HYPERVISOR_event_channel_op(
        return rc;
 }
 
+static inline int
+HYPERVISOR_acm_op(
+       int cmd, void *arg)
+{
+       return = _hypercall2(int, acm_op, cmd, arg);
+}
+
 static inline int
 HYPERVISOR_xen_version(
        int cmd, void *arg)